/* ====== GLOBAL ====== */
:root {
  --primary: #1b5e20;   /* Dark Green */
  --secondary: #388e3c; /* Lighter Green */
  --accent: #e0f2f1;    /* Soft Green Background */
  --text-dark: #222;
  --text-light: #f5f5f5;
  --white: #fff;
  --transition: all 0.3s ease;
  --radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  background: #fafafa;
  color: var(--text-dark);
}

img {
  max-width: 100%;
  border-radius: var(--radius);
}

a {
  color: #024c25;
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: #4caf50; /* lighter green accent */
}

/* ===== HEADER (Updated to match About Us) ===== */
header {
  background: #024c25; /* brand dark green */
  color: #fff;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  width: 90%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .logo img {
  height: 60px;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

header nav ul li a {
  color: #fff;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 4px;
  transition: 0.3s;
}

header nav ul li a:hover,
header nav ul li a.active {
  background: #4caf50; /* lighter green */
  color: #fff;
}

/* ===== HERO ===== */
.hero-team {
  text-align: center;
  background: linear-gradient(rgba(27,94,32,0.8), rgba(27,94,32,0.8)),
              url("Images/tkrj.png") center/cover no-repeat;
  padding: 6rem 2rem;
  color: var(--white);
}

.hero-team h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero-team p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* ===== TEAM SECTIONS ===== */
.team-section {
  padding: 4rem 2rem;
  background: var(--white);
}

.team-section:nth-child(even) {
  background: var(--accent);
}

.team-section h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.committee-desc {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: #555;
  font-style: italic;
}

.committee-list {
  max-width: 800px;
  margin: 0 auto 2rem;
  padding-left: 1rem;
  color: #444;
}

/* ===== TEAM GRID ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  perspective: 1000px; /* Needed for 3D flip */
}

.team-card {
  position: relative;
  width: 100%;
  height: 320px;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
  cursor: pointer;
}

.team-card:hover {
  transform: rotateY(180deg);
}

.team-card-inner {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  background: var(--white);
  transform-style: preserve-3d;
}

/* Front Side */
.team-card-front,
.team-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.team-card-front {
  background: var(--white);
  text-align: center;
}

.team-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 3px solid var(--primary);
}

.team-card-front h4 {
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.team-card-front p {
  color: #555;
  font-size: 0.95rem;
}

/* Back Side */
.team-card-back {
  background: var(--primary);
  color: var(--white);
  transform: rotateY(180deg);
  text-align: center;
}

.team-card-back h4 {
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
}

.team-card-back p {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ===== RESPONSIBILITIES TABLE ===== */
.responsibilities {
  padding: 4rem 2rem;
  text-align: center;
  background: var(--accent);
}

.resp-table {
  width: 90%;
  margin: 2rem auto;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.resp-table th,
.resp-table td {
  border: 1px solid #ddd;
  padding: 1rem;
  text-align: left;
}

.resp-table th {
  background: var(--primary);
  color: var(--white);
  text-transform: uppercase;
  font-size: 0.9rem;
}

.resp-table tr:nth-child(even) {
  background: #f9f9f9;
}

/* ===== FOOTER ===== */
footer {
  background: #024c25; /* brand dark green */
  color: #fff;
  margin-top: 3rem;
}

.footer-top {
  padding: 3rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.footer-logo img {
  width: 120px;
  margin-bottom: 0.8rem;
}

.footer-contact i,
.footer-sitemap a,
.footer-social a {
  color: #4caf50;
}

.footer-sitemap a {
  text-decoration: none;
  display: block;
  margin-bottom: 0.4rem;
  transition: var(--transition);
}

.footer-sitemap a:hover {
  color: #fff;
}

.footer-social .social-icons a {
  font-size: 1.2rem;
  margin-right: 0.7rem;
  transition: var(--transition);
}

.footer-social .social-icons a:hover {
  color: #fff;
}

.footer-bottom {
  background: #0d3b12;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* ===== SCROLL PROGRESS BAR ===== */
#progress-bar {
  
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  background: #024c25; /* brand dark green */
  width: 0%;
  z-index: 2000;
  transition: width 0.25s ease-out;
}
